<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>overflow学习</title>
</head>
<body>
    <!--超出框的部分隐藏掉-->
    <div style="height:200px;width:300px;overflow:hidden">
        <img src="../images/girl.jpg" />
    </div>
    <!--出现滚动条-->
    <div style="height:200px;width:300px;overflow:auto">
        <img src="../images/girl.jpg" />
    </div>
</body>
</html>